package innerclass;

class School{  //  School.class
	int i;
	static int j;
	// 静态内部类，不属于对象
	static class Teacher{  // 内部类编译后的文件名：School$Teacher.class
		String name;
		public void test() {
			name = "aa";
			// i = 1;   //静态内部类中不能访问外部类的非静态的属性和方法
			j = 10;
		}
	}
	static class Student{  // 内部类编译后的文件名：School$Student.class
		int num;
	}
}
public class StaticInnerTest {  // StaticInnerTest.class
	public static void main(String[] args) {
		//创建静态内部类对象
		School.Teacher teacher = new School.Teacher();
		teacher.name = "zs";
		School.Student student = new School.Student();
		student.num = 10;
	}
}
